﻿using RobotPerCeption.Interface;
using System.Windows.Controls;
///直角坐标系
namespace RobotPerCeption.Entity
{
    public class RobotePosistionRanderZJ : IRobotePositionOp
    {
        public void dataChange(double[] position, TextBox x, TextBox y, TextBox z, TextBox a, TextBox b, TextBox c)
        {

            x.Text = position[0] + "";
            y.Text = position[1] + "";
            z.Text = position[2] + "";
            a.Text = position[3] + "";
            b.Text = position[4] + "";
            c.Text = position[5] + "";

        }


        public void loadElementZJ(int index, Label x, Label y, Label z, Label a, Label b, Label c)
        {


            x.Content = "X";
            y.Content = "Y";
            z.Content = "Z";
            a.Content = "A";
            b.Content = "B";
            c.Content = "C";

            switch (index)
            {
                case 0:
                    {

                        //关节坐标系
                        x.Content = "J1";
                        y.Content = "J2";
                        z.Content = "J3";
                        a.Content = "J4";
                        b.Content = "J5";
                        c.Content = "J6";
                        break;
                    }
                case 1:
                    {

                        //直角坐标系
                        x.Content = "X";
                        y.Content = "Y";
                        z.Content = "Z";
                        a.Content = "A";
                        b.Content = "B";
                        c.Content = "C";
                        break;
                    }
                case 2:
                    {

                        //工具坐标系
                        x.Content = "TX";
                        y.Content = "TY";
                        z.Content = "TZ";
                        a.Content = "TA";
                        b.Content = "TB";
                        c.Content = "TC";
                        break;
                    }
                case 3:
                    {
                        //用户坐标系
                        x.Content = "UX";
                        y.Content = "UY";
                        z.Content = "UZ";
                        a.Content = "UA";
                        b.Content = "UB";
                        c.Content = "UC";
                        break;
                    }

            }


        }
    }

}
